import 'package:get/get.dart';

import 'index.dart';
import '../../rental/device_index/index.dart' as device;
import '../../order/order_index/index.dart' as order;
import '../../msg/msg_index/index.dart' as msg;
import '../../my/my_index/index.dart' as my;

class MainBinding implements Bindings {
  @override
  void dependencies() {
    // 注册主页面控制器
    Get.lazyPut<MainController>(() => MainController());
    
    // 注册四个子页面的控制器
    Get.lazyPut<device.DeviceIndexController>(() => device.DeviceIndexController());
    Get.lazyPut<order.OrderIndexController>(() => order.OrderIndexController());
    Get.lazyPut<msg.MsgIndexController>(() => msg.MsgIndexController());
    Get.lazyPut<my.MyIndexController>(() => my.MyIndexController());
  }
}
